package org.jeecg.modules.basic.warehouseGroup.mapper;

import java.util.List;

import org.jeecg.modules.basic.warehouse.entity.WmsBasicWarehouse;
import org.jeecg.modules.basic.warehouseGroup.entity.WmsBasicWarehouseGroupUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 仓库组-仓管员
 * @Author: jeecg-boot
 * @Date:   2023-08-02
 * @Version: V1.0
 */
public interface WmsBasicWarehouseGroupUserMapper extends BaseMapper<WmsBasicWarehouseGroupUser> {

	/**
	 * 通过主表id删除子表数据
	 *
	 * @param mainId 主表id
	 * @return boolean
	 */
	public boolean deleteByMainId(@Param("mainId") String mainId);

  /**
   * 通过主表id查询子表数据
   *
   * @param mainId 主表id
   * @return List<WmsBasicWarehouseGroupUser>
   */
	public List<WmsBasicWarehouseGroupUser> selectByMainId(@Param("mainId") String mainId);

	/**
	 * 通过用户id获取用户绑定的仓库集合
	 * @param userId
	 * @return
	 */
	List<String> getWarehouseListByUserId(@Param("userId")String userId);
}
